<template>
  <div style="width: 100%">
    <el-dialog :modal-append-to-body="false" :title="title" :visible.sync="visible" width="500px">
      <el-form :model="fromData" label-width="100px" size="mini">
        <el-form-item label="名称：">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="英文名称：">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="环境标识：">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="描述：">
          <el-input></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" style="text-align: center">
        <el-button size="mini" @click="visible=false">取消</el-button>
        <el-button size="mini" type="primary">保存</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "createAppDialog",
  props: {
    title: {
      type: String,
      default: () => {
        return "标题"
      }
    }
  },
  data() {
    return {
      visible: false,
      fromData: {
        name: "",
        ENName: "",
        status: "",
        remark: ""
      }
    }
  },
  methods: {
    open() {
      this.visible = true;
    },
    close() {
      this.visible = false;
    }
  }
}
</script>

<style scoped>

</style>
